import Request from '@/utils/request'

export const noticePageGet = data => {
    return Request({
        url: '/notice/page',
        method: 'post',
        data: data,
    })
}
export const noticeListGet = data => {
    return Request({
        url: '/notice/list',
        method: 'post',
        data: data,
    })
}

export const noticeDelete = id => {
    return Request({
        url: '/notice/delete/' + id,
        method: 'get',
    })
}

export const noticeOne = id => {
    return Request({
        url: '/notice/one/' + id,
        method: 'get',
    })
}

export const noticeUpdate = data => {
    return Request({
        url: '/notice/update',
        method: 'post',
        data: data
    })
}

export const noticeAdd = data => {
    return Request({
        url: '/notice/save',
        method: 'post',
        data: data
    })
}
